package nc.vo.xew.outer;

import java.rmi.RemoteException;

import nc.bs.framework.common.NCLocator;
import nc.itf.xew.prv.ICardTbTT;
import nc.vo.ntb.outer.IAccessableBusiVO;
import nc.vo.ntb.outer.IBusiSysExecDataProvider;
import nc.vo.ntb.outer.NtbParamVO;
import nc.vo.pub.lang.UFDouble;

public class XewBusiSysExecDataProvider implements IBusiSysExecDataProvider {

	public int getCtlPoint(String arg0) throws RemoteException {
		return 0;
	}

	public IAccessableBusiVO[] getCvtProvider(IAccessableBusiVO[] arg0)
			throws RemoteException {
		return null;
	}

	public UFDouble[] getExecData(NtbParamVO paramVO) throws RemoteException {
		UFDouble[] data = null;
		try {
			ICardTbTT queryService = (ICardTbTT)NCLocator.getInstance().lookup(ICardTbTT.class.getName()); 
			data = queryService.getExecData(paramVO);
		} catch (Exception e) {
			e.printStackTrace();
			throw new RemoteException(e.getMessage());
		}
		return data;
	}

	public UFDouble[][] getExecDataBatch(NtbParamVO[] paramVO)
			throws RemoteException {
		UFDouble[][] datas = null;
		try {
			ICardTbTT queryService = (ICardTbTT)NCLocator.getInstance().lookup(ICardTbTT.class.getName()); 
			datas = queryService.getExeDataBatch(paramVO);
			//datas = new CardTbBO().getExeDataBatch(paramVO);
		} catch (Exception e) {
			e.printStackTrace();
			throw new RemoteException(e.getMessage());

		}
		return datas;
	}

}
